<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/echarts.min.js"></script>
</head>
<body>
    <div style="width: 600px;height: 400px" id="bar"></div>
</body>
    <script>
        var myechart = echarts.init(document.getElementById("bar"))

        var option = {
            title:{
              text:"成绩"
            },
            xAxis:{
                max:150,
                name: '成绩',
                type:'value',
            },
            tooltip:{}
            ,
            yAxis:{
              type: 'category',
                name:'科目',
                data:["语文","数学","英语"],
            },
            series:{
                type:'bar',
                data: [110,89,104],
            }
        }

        myechart.setOption(option)
    </script>
</html>